<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.xteam.ecsystem.utils.AppConfig"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

//获取商品购物券图片路径
String couponImgPath = AppConfig.getCouponImagePath();
//获取图片实际根目录
String realpath = AppConfig.getRealPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>购物券管理-购物券列表</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
	<script type="text/javascript">
			var __couponImgPath = "<%=couponImgPath %>";
			var __realpath = '<%=realpath%>';
	</script>
  </head>
  <body style="margin:0 auto;padding:0">  
  	<form id="couponForm" method="post"> 
        <table style="width:100%;font-size:12px;padding-top:14px;" align="center" cellpadding="3">
			<tr>
				<td align="right" width="100">购物券名称：</td>
				<td>    
                     <input name="bciName" class="mini-textbox" required="true" width="350"/>
                 </td>
			</tr>
			<tr>
				<td align="right">购物券金额：</td>
				<td>    
                     <input name="bciPrice" class="mini-textbox" required="true" onvalidation="vldBicPrice" width="350"/>
                 </td>
			</tr>
			<tr>
				<td align="right">购物券图标：</td>
				<td>    
                     <input class="mini-textbox" id="upload_bciPicurl" name="bciPicurl" width="306"
                     	style="float:left;"/>
					  <span id="bciUpload"></span>
                 </td>
			</tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>    
                    <div id="imgViewer" style="border:1px dashed #9DA0AA;width:350px;height:140px;"></div>
                 </td>
			</tr>
			<tr>
				<td align="right">购物券状态：</td>
				<td>   
                     <div id="bciState" name="bciState" class="mini-radiobuttonlist" 
		    		 	repeatItems="2" repeatLayout="table" repeatDirection="horizontal"  
		    		 	textField="text" valueField="value">
					</div> 
                 </td>
			</tr>
			<tr>
				<td colspan="2" align="center" style="height:50px;">
					<input class="mini-button" text="保存" iconCls="icon-save" plain="false" 
      					onclick="CouponFormHandler.save"/>&nbsp;&nbsp;
      				<input class="mini-button" text="关闭" iconCls="icon-cancel" plain="false" 
      					onclick="CouponFormHandler.closeMiniWin"/>
				</td>
			</tr>
		</table>
  	</form>
  </body>
  <script src="handler/CouponFormHandler.js" type="text/javascript"></script>
</html>